package com.ln.cmsln.controller.zlxl.api;


import com.alibaba.fastjson.JSON;
import com.ln.cmsln.mapper.CourseserviceMapper;
import com.ln.cmsln.pojo.entity.Courseservice;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author wuwenzhe
 * @since 2022-03-31
 */
@CrossOrigin//跨域
@RestController
@RequestMapping("/apicourseservice")
public class ApiCourseserviceController {
    @Resource
    private CourseserviceMapper courseserviceMapper;

    @RequestMapping("getAllA")
    public   List<Courseservice> getAllA() {
        List<Courseservice> courseservices = courseserviceMapper.selectAllByA();
        return courseservices;
    }
    @RequestMapping("getAllB")
    public   List<Courseservice> getAllB() {
        List<Courseservice> courseservices = courseserviceMapper.selectAllByB();
        return courseservices;
    }
    @RequestMapping("getAllC")
    public   List<Courseservice> getAllC() {
        List<Courseservice> courseservices = courseserviceMapper.selectAllByC();
        return courseservices;
    }
    @RequestMapping("getAllD")
    public   List<Courseservice> getAllD() {
        List<Courseservice> courseservices = courseserviceMapper.selectAllByD();
        return courseservices;
    }
    @RequestMapping("getAllE")
    public   List<Courseservice> getAllE() {
        List<Courseservice> courseservices = courseserviceMapper.selectAllByE();
        return courseservices;
    }
    @RequestMapping("getAllF")
    public   List<Courseservice> getAllF() {
        List<Courseservice> courseservices = courseserviceMapper.selectAllByF();
        return courseservices;
    }
    @RequestMapping("getAll1")
    public   List<Courseservice> getAll1() {
        List<Courseservice> courseservices = courseserviceMapper.selectAllBy1();
        return courseservices;
    }
    @RequestMapping("getAll2")
    public   List<Courseservice> getAll2() {
        List<Courseservice> courseservices = courseserviceMapper.selectAllBy2();
        return courseservices;
    }

}

